﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Needle.Bus.Engine.Schedulers
{
    public class WorkerPool<T> : IExtension<T>
        where T : class , IScheduler<T>
    {

        #region public interface

        public Worker<T> CheckOut() { return null; }

        public void CheckIn(Worker<T> worker) { }

        public int MaxPoolSize { get; set; }

        public int MinPoolSize { get; set; }

        public TimeSpan IdleTimeOut { get; set; }

        #endregion

        #region IExtension<T>

        void IExtension<T>.Attach(T owner) { }

        void IExtension<T>.Detach(T owner) { }

        #endregion

    }
}
